package com.qf.service;

import com.qf.entity.Book;
import com.qf.entity.Page;

import java.util.List;

/**
 * @author Wy
 * @version V1.0
 * @Project day41-3
 * @Package com.qf.service
 * @Description:
 * @Date 2022/5/14 13:16
 */
public interface BookService {
       List<Book> getAll();

       boolean addBook(Book book);

      int deleteBook(String bookId);

       int updatebooks(Book book,String bookId);

        Book getBook(String bookId);
        /*
        * 根据分页对象进行分页查询
        *
        * */
        List<Book> findAllPage(Page page);

        /*
        * 分页查询，查询总记录数
        * */

        int findAllPageCount();
}
